package com.cn.demo4.service.impl;

import com.cn.demo4.entity.ProductTypeEntity;
import com.cn.demo4.mapper.ProductTypeMapper;
import com.cn.demo4.service.IProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductTypeServiceImpl implements IProductTypeService {
    @Autowired
    private ProductTypeMapper productTypeMapper;
    @Override
    public List<ProductTypeEntity> findAll() {
        return productTypeMapper.findAll();
    }

    @Override
    public List<ProductTypeEntity> getProductTypeModelListForHome() {
        return productTypeMapper.getProductTypeModelListForHome();
    }
}
